package com.example.myshopping3.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.myshopping3.mapper.CommentMapper;
import com.example.myshopping3.model.Comment;
import com.example.myshopping3.model.view.CommentView;
import com.example.myshopping3.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService {
    @Autowired
    private CommentMapper commentMapper;
    @Override
    public List<CommentView> getComment(int BookId) {
        return commentMapper.getComment(BookId);
    }
}
